package com.dao.sale; 

import com.model.sale.OrgCompanyModel; 
import java.sql.SQLException;
import java.util.List; 
import java.util.Map; 
import org.apache.ibatis.annotations.Param; 
import org.springframework.stereotype.Repository;

@Repository("saleOrgCompanyDao")
public interface OrgCompanyDao  { 

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int insert(OrgCompanyModel orgCompanyModel);

	
	int deleteById(String id);
	
	List<OrgCompanyModel> selectById(String id);
	
	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int delete(@Param("id")String id);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int update(OrgCompanyModel orgCompanyModel);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	OrgCompanyModel load(@Param("id")String id);


	// 列表
	List<OrgCompanyModel> selectList(Map<String, Object> map);

	// 列表总数
	int selectListCount(Map<String, Object> map);
 }